<?php $account = account_wallet(); ?>

<?php
if ($account >= $total) {
    ?>
    <div class="saved">
        <?= lang('label_your_credit') ?></span><span><?= ' ' . (double) $account . ' ' . lang('label_rs') ?></span>
        <?php
        $message = str_replace('%pay%', $total, lang('message_will_pay'));
        $message = str_replace('%total%', $account - $total, $message);
        echo $message;
        ?>
    </div>
    <div class="submit">
        <input class="submit"  value="<?= lang('label_done') ?>" type="submit">  
    </div>
<?php } else { ?>
    <div class="unsaved">
        <div><?= lang('label_your_credit') ?></span><span><?= ' ' . (double) $account . ' ' . lang('label_rs') ?></span></div>
        <?= lang('message_notenough_wallet_account') ?>
    </div>
<?php } ?>



